#include "DynamicObject.h"

DynamicObject::DynamicObject()
{
	
}

DynamicObject::DynamicObject(const DynamicObject& _dynamicObject)
{

}

DynamicObject::~DynamicObject()
{

}

void DynamicObject::Initialize(string _name)
{
	SetName(_name);
}

void DynamicObject::Render()
{

}

void DynamicObject::Update(float _dt)
{
	//Update Position based on Velocity
	XMVECTOR vPosition = XMLoadFloat3(&GetPosition());
	XMVECTOR vVelocity = XMLoadFloat3(&velocity);
	vVelocity = XMVectorScale(vVelocity, _dt);
	vPosition += vVelocity;
	XMFLOAT3 pos;
	XMStoreFloat3(&pos, vPosition);
	SetPosition(pos);
}